﻿using LuDragon.Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuDragon.Common.Extensions
{
    public partial class WhereFilter
    {
        public static WhereFilter Create(string field, Operation operation, object value)
        {
            return new WhereFilter()
            {
                Field = field,
                Operation = operation,
                Value = value
            };
        }

        /// <summary>
        /// 字符名称
        /// </summary>
        public string Field { get; set; }
        /// <summary>
        /// 比较符
        /// </summary>
        public Operation Operation { get; set; }
        /// <summary>
        /// 比较值
        /// </summary>
        public object Value { get; set; }
    }
}
